package org.duiduo.tutorialmod.datagen;

import net.minecraft.data.PackOutput;
import net.minecraftforge.common.data.LanguageProvider;
import org.duiduo.tutorialmod.TutorialMod;
import org.duiduo.tutorialmod.block.ModBlocks;
import org.duiduo.tutorialmod.item.ModCreativeModTabs;
import org.duiduo.tutorialmod.item.ModItems;

/**
 * 生成中文语言供应配置
 *
 * @author liangze
 * @date 2024/9/18 10:57
 */
public class CnLanguageProvider extends LanguageProvider {

    public static final String ZH_CN = "zh_cn";

    public CnLanguageProvider(PackOutput output, String locale) {
        super(output, TutorialMod.MODID, locale);
    }

    @Override
    protected void addTranslations() {
        add(ModItems.SILVER_INGOT.get(), "银锭");
        add(ModItems.RAW_SILVER.get(), "银原石");
        add(ModBlocks.SILVER_BLOCK.get(), "银块");
        add(ModBlocks.SILVER_ORE.get(), "银矿石");
        add(ModCreativeModTabs.TUTORIAL_TAB_STRING, "自制模组");
    }

}
